Fortgeschrittene Datenstrukturen — Vorlesung: Distance Oracles (ctd.), String B-Trees

ثبت نشده
چکیده

In a graph G = (V,E) with non-negative edge weights ω(e), e ∈ E, Dijkstra’s single source shortest path (SSSP) algorithm finds for a given source vertex s ∈ V the shortests path between that vertex s and every other vertex. We denote the length of the shortest path from v to w by δ(v, w), i.e. Dijktra’s algorithm computes δ(s, v) for all v ∈ V . Algorithm 1 shows the full pseudo-code of Dijkstra’s algorithm. In short, Dijkstra’s algorithm declares all nodes unscanned and initializes an array d with ∞ which holds an upper bound on the shortest path: δ(s, v) ≤ d[v]. First all edges out of s are relaxed. While there are unscanned nodes with d[v] < ∞, take such a node v with minimal d[v] and relax all its outgoing edges and declare v scanned. The relax procedure for node v takes all edges (v, w) and sets d[w] to d[v] + ω(v, w) if this new distance is smaller then the current estimate d[w]. In a graph with non-negative edge weights ω(v, w), Dijkstra’s algorithm ensures that for each scanned node d[v] = δ(s, v) and thus at termination for all reachable nodes v : d[v] = δ(s, v). The time complexity of Dijkstra’s algorithm depends upon the time complexity of the insert, deleteMin and decreaseKey operations of the used priority queue as follows:

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Fortgeschrittene Datenstrukturen — Vorlesung 11 1 Succinct Data Structures (ctd.) 1.1 Select-queries

A slightly different approach, compared to rank, is used for select. B represents the bit-vector with |B| = n and let k = blog nc. A new table N is defined, which stores the (k · i)’th occurence of a 1-bit in B. Alternatively, N [i] = select1(B, ik). As we can see, table N [1, n k ] divides B into blocks of different sizes, whereas each block contains k 1’s. An example is given in Figure 1, whe...

متن کامل

So mooc wi dat - Von der Vorlesung zum Massive Open Online Course

Zentraler Bestandteil der universitären Lehre bildet seit Jahrhunderten die Vorlesung: Einer redet, Hunderte hören zu. Ermöglicht durch schnelle Netze und multimediale Webportale bahnt sich seit etwa drei Jahren eine ernstzunehmende Alternative den Weg: der MOOC (Massive Open Online Course). Hier wühlen sich Tausende von Teilnehmern nach eigener Zeiteinteilung durch interaktives Lehrmaterial, s...

متن کامل

Efficient Similarity Search for Tree-Structured Data

Tree-structured data are becoming ubiquitous nowadays and manipulating them based on similarity is essential for many applications. Although similarity search on textual data has been extensively studied, searching for similar trees is still an open problem due to the high complexity of computing the similarity between trees, especially for large numbers of tress. In this paper, we propose to t...

متن کامل

Compact and Fast Sensitivity Oracles for Single-Source Distances

Let s denote a distinguished source vertex of a non-negatively real weighted and undirected graph G with n vertices and m edges. In this paper we present two efficient single-source approximatedistance sensitivity oracles, namely compact data structures which are able to quickly report an approximate (by a multiplicative stretch factor) distance from s to any node of G following the failure of ...

متن کامل

Analyzing Edit Distance on Trees: Tree Swap Distance is Intractable

The string correction problem looks at minimal ways to modify one string into another using fixed operations, such as for example inserting a symbol, deleting a symbol and interchanging the positions of two symbols (a “swap”). This has been generalized to trees in various ways, but unfortunately having operations to insert/delete nodes in the tree and operations that move subtrees, such as a “s...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012